/**
 * Created by tang on 2018/3/27.
 */


import request from '../utils/request';

//轮播图列表
export async function postCarouselList(params) {
  return request('/admin/carousel/list', {
    method: 'POST',
    body: params,
  });
}

//轮播图删除
export async function postCarouselDel(params) {
  return request('/admin/carousel/del', {
    method: 'POST',
    body: params,
  });
}

//轮播图添加
export async function postCarouselAdd(params) {
  return request('/admin/carousel/add', {
    method: 'POST',
    body: params,
  });
}

//轮播图修改
export async function postCarouselUpdate(params){
  return request('/admin/carousel/update', {
    method: 'POST',
    body: params,
  });
}

//调到轮播图修改
export async function postCarouselGet(params){
  return request('/admin/carousel/get', {
    method: 'POST',
    body: params,
  });
}
//轮播图详情
export async function postCarouselInfo(params){
  return request('/admin/carousel/info', {
    method: 'POST',
    body: params,
  });
}

//通知
export async function postNotTable(params){
  return request('/admin/system/notable/update', {
    method: 'POST',
    body: params,
  });
}
//通知详情
export async function postNotTableInfo(params){
  return request('/admin/system/notable/info', {
    method: 'POST',
    body: params,
  });
}
//敏感字符文件
export async function postCensorWords(params){
  return request('/admin/system/censorWords/info', {
    method: 'POST',
    body: params,
  });
}
//敏感字符上传
export async function postCensorWordsUp(params){
  return request('/admin/system/censorWords/update', {
    method: 'POST',
    body: params,
  });
}
